<template>
  <section>
    <el-col :span="24" v-for="(rule, index) in value" :key="index">
      <rule-attribute-editor v-model="value[index]" />
      <el-divider v-if="index !== value.length - 1" />
    </el-col>
  </section>
</template>

<script>
import RuleAttributeEditor from "./RuleAttributeEditor.vue";
export default {
  name: "RuleAttributesEditor",
  props: {
    value: {
      type: Array,
      default() {
        return [];
      }
    },
    name: {
      type: String,
      default() {
        return;
      }
    }
  },
  components: { RuleAttributeEditor },
  data() {
    return {
      labelWidth: "80px"
    };
  }
};
</script>
